//
//  InvestTabBarController.swift
//  invest_account_books
//
//  Created by volientDuan on 2017/11/20.
//  Copyright © 2017年 volient. All rights reserved.
//

import UIKit

class InvestTabBarController: IBaseTabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
        initUI()
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    func initUI() {
        let iMoney = IMoneyViewController()
        let invest = IOperationViewController()
        let iProject = IProjectViewController()
        
        let imNavi = IBaseNaviController(rootViewController: iMoney)
        let investNavi = IBaseNaviController(rootViewController: invest)
        let ipNavi = IBaseNaviController(rootViewController: iProject)
        
        imNavi.tabBarItem = self.createTabBarItem(title: "资金", normalImage: UIImage.init(named: "tab_money_gray")!, selectedImage: UIImage.init(named: "tab_money_blue")!)
        investNavi.tabBarItem = self.createTabBarItem(title: "操作", normalImage: UIImage.init(named: "tab_operation_gray")!, selectedImage: UIImage.init(named: "tab_operation_blue")!)
        ipNavi.tabBarItem = self.createTabBarItem(title: "项目", normalImage: UIImage.init(named: "tab_project_gray")!, selectedImage: UIImage.init(named: "tab_project_blue")!)
        
        self.viewControllers = [imNavi, investNavi, ipNavi];
    }

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
